bitkeeper revision 1.1159.1.185 (4155a3daql44JDS3x9h6kCrFxSJd-Q)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Sat, 25 Sep 2004 16:59:06 +0000 (16:59 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Sat, 25 Sep 2004 16:59:06 +0000 (16:59 +0000)
fix tiny memory leak.

xen/arch/x86/shadow.c

index 1900b04a8274fc64dcb43ab7ea280917e296a250..218a2b7b3f5cd2d4a02fa99bdfdb2a9d559030ee 100644 (file)
@@ -137,6 +137,7 @@ static inline int shadow_page_op( struct mm_struct *m, unsigned int op,
                {
                        // lock is already held
                        delete_shadow_status( m, gpfn );
+                       free_shadow_page( m, spfn_info );
                        restart = 1; // we need to go to start of list again
                }
     }